package com.cyt.sys.service;

import com.cyt.base.model.dto.ReturnResult;
import com.cyt.sys.model.po.SysDictContent;
import com.cyt.sys.model.vo.SysDictContentVo;

import java.util.List;

/**
 *@Author: YuShengQiang
 *@Date: 2018-11-16 11:54
 *@Description:数据字典内容service接口类
 */
public interface SysDictContentService extends BaseService<SysDictContent> {
    /**
     *@Author: YuShengQiang
     *@Date: 2018-11-23 14:17
     *@Description: 分页查询
     */
    public ReturnResult page(SysDictContentVo baseRoleVo, int pageSize, int pageNum);

    /**
     *@Author: YuShengQiang
     *@Date: 2018-11-24 10:50
     *@Description:列表查询
     */
    public ReturnResult list(SysDictContentVo sysDictContentVo);

    /**
     *@Author: YuShengQiang
     *@Date: 2018-11-23 14:19
     *@Description: 根据dictType获取集合,多个以“，”隔开
     */
    public ReturnResult listByCode(String dictTypes);

    /**
     * @author: liufu zhu
     * @date: 2018/11/29 16:12
     * @Description:  保存/更新字典数据
     */
    public ReturnResult addOrUpdate(SysDictContentVo sysDictContentVo);

    /**
     * @author: liufu zhu
     * @date: 2018/11/29 16:40
     * @Description:  删除字典数据
     */
    public ReturnResult delete(String id);

    /**
     * @author: liufu zhu
     * @date: 2018/11/30 9:37
     * @Description:  根据dictType删除
     */
    public ReturnResult updateByDictType(String dictType);

    public List<SysDictContent> selectList1(SysDictContentVo sysDictContentVo);
}
